$(document).ready(function() {
	$('#example').dataTable( {
		"bDestroy": true,
		"bProcessing": true,
		"bServerSide": true,
		"sAjaxSource": "ajax_consultaKit.php",
		"sScrollY": 200,
		"bJQueryUI": true,
		"bLengthChange": false,
		"bPaginate": false,
		/*"sPaginationType": "full_numbers",*/
		"oLanguage": {
			"LengthMenu": "_MENU_ records per page",
			"sUrl": "../../js/datatable_language.txt"
		}
	});
});

function btn_acao(pagina,id) {
	var theForm, id;
	// Start by creating a <form>
	theForm = document.createElement('form');
	theForm.action = pagina;
	theForm.method = 'POST';
	// Next create the <input>s in the form and give them names and values
	input = document.createElement('input');
	input.type = 'hidden';
	input.name = 'id';
	input.value = id;
	
	// Now put everything together...
	theForm.appendChild(input);
	
	// ...and it to the DOM...
	document.getElementById('hidden_form_container').appendChild(theForm);
	// ...and submit it
	theForm.submit();
}